package com.quanyan.platform.service;

import com.quanyan.api.APIResponse;
import com.quanyan.platform.model.req.ReqNearbyCircleInfo;
import com.quanyan.platform.model.req.ReqRecommendOrNearby;
import com.quanyan.platform.model.resp.RespGatherCircleRecords;
import com.quanyan.platform.model.resp.RespGatherItems;
import com.quanyan.platform.model.resp.RespGatherSportCategories;
import com.quanyan.platform.model.resp.RespGatherSpots;
import org.apache.thrift.TException;

/**
 * Created by slong.guo on 2017/3/3.
 */
public interface GatherService {

    /**
     * 获取运动类型信息
     *
     * @return
     */
    APIResponse<RespGatherSportCategories> getSports();


    /**
     * 获取记录信息(搜索1，收藏2，搜索和收藏3)
     *
     * @param uid
     * @return
     */
    APIResponse<RespGatherCircleRecords> getRecord(int uid, int type);

    /**
     * 获取圈子信息
     *
     * @param uid
     * @param req
     * @return
     * @throws TException
     */
    APIResponse<RespGatherSpots> getCircles(int uid, ReqNearbyCircleInfo req);


    /**
     * 关注、取消关注圈子
     *
     * @param uid
     * @param circleID
     * @return
     */
    APIResponse doFollow(int uid, int circleID);




    /**
     * 获取附近/推荐的场馆/俱乐部/活动信息
     *
     * @param uid
     * @param req
     * @return
     */
    APIResponse<RespGatherItems> getRecommendOrNearby(int uid, ReqRecommendOrNearby req);



}
